package two_xia.ex9.Demo02;

public class Client {
    public static void main(String[] args) {
        // 根据配置文件，设置功能键对应的命令
        Command exitCommand = new SystemExitClass();
        Command helpCommand = new DisplayHelpClass();

        // 创建功能键并绑定命令
        FunctionButton exitButton = new FunctionButton(exitCommand);
        FunctionButton helpButton = new FunctionButton(helpCommand);

        // 模拟按下功能键
        exitButton.press();
        helpButton.press();
    }
}